
<%@ page import="sige.Usuario" %>

<g:if test="${session?.usuario}">
  <div class="navbar navbar-inverse">
    <div class="navbar-inner">
      <div class="container">
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </a>
        <a class="brand" href="${createLink(uri: '/')}">SIGE-CIVE</a>
        <div class="nav-collapse">
          <ul class="nav">
            <li><g:link controller="principal">Página Inicial</g:link></li>
            <li class="dropdown" id="menuDis">
              <a class="dropdown-toggle" data-toggle="dropdown" href="#menuDis">
                Discente
                <b class="caret"></b>
              </a>
              <ul class="dropdown-menu">
                <li><g:link controller="aluno" action="create" >Nova Matrícula</g:link></li>
            <li><g:link controller="aluno">Aluno</g:link></li>
            <li class="divider"></li>
            <li><g:link controller="responsavel">Responsável</g:link></li>
          </ul>
          </li>
          <li class="dropdown" id="menuFun">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#menuFun">
              Funcionários
              <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <li><g:link controller="professor">Professor</g:link></li>
          <li><g:link controller="secretaria">Secretária</g:link></li>
          <li><g:link controller="funcionario">Todos</g:link></li>
          </ul>
          </li>
          <li class="dropdown" id="menuDesp">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#menuDesp">
              Financeiro
              <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <li><g:link controller="despesa">Movimentações</g:link></li>
              <li><g:link controller="relatorioMensal">Relatório Mensal</g:link></li>
              <li><g:link controller="caixaDiario">Caixa Diário</g:link></li>
              <li><g:link controller="ordem">Ordens de Despesas</g:link></li>
              <li><g:link controller="pagamento">Pagamentos</g:link></li>
              <li><g:link controller="sangria">Sangrias</g:link></li>
              <li><g:link controller="suprimento">Suprimentos</g:link></li>
              <li><g:link controller="agendaFinanceira">Agenda Financeira</g:link></li>
              <li><g:link controller="contrato" action="emAtrazo">Anuidades em Atrazo</g:link></li>
          </ul>
          </li>
          <li class="dropdown" id="menuEns">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#menuEns">
              Ensino
              <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <li><g:link controller="anoLetivo">Ano Letivo</g:link></li>
          <li><g:link controller="bimestre">Bimestre</g:link></li>  
          <li><g:link controller="disciplina">Disciplina</g:link></li>
          <li><g:link controller="serie">Série</g:link></li>
          <li><g:link controller="turma">Turma</g:link></li>           
          </ul>
          </li>
          
          </ul>
          <ul class="nav pull-right">
            <li class="divider-vertical"></li>
            <li class="dropdown" id="menu1">
              <a class="dropdown-toggle" data-toggle="dropdown" href="#menu1">
                <i class="icon-user icon-white"></i>
${session?.usuario?.login}
                <b class="caret"></b>
              </a>
              <ul class="dropdown-menu">
                <li><g:link controller="dadosDoUsuario" action="show" id="${session?.usuario?.id}">
                  <i class="icon-list-alt"></i>
                  Meus Dados</g:link>
            </li>
            <li><g:link controller="dadosDoUsuario" action="edit">
              <i class="icon-cog"></i>
              Configurar</g:link>
            </li>
            <li class="divider"></li>
            <li><g:link controller="login" action="deslogar">
              <i class="icon-off"></i>
              Sair</g:link>
            </li>
          </ul>
          </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
  </div>
</g:if>
